package com.deng.config.common;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @Author 邓小熙
 * @Date 2022/5/25 19:40
 * @Version 1.0
 */
public class TimeUtil {
    // 分会当前时间

    @org.jetbrains.annotations.NotNull
    public static Timestamp setCurrentTime(){
        return new Timestamp(System.currentTimeMillis());
    }

    /**
     *
     * @return
     */
    public static SimpleDateFormat formatToYMD(){
        return new SimpleDateFormat("yyyy-MM-dd");
    }
}
